<!DOCTYPE html>
<html lang="zh">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>2048游戏</title>
  <link rel="stylesheet" href="style.css">
</head>

<body>
  <div class="container">
    <h1>2048</h1>
    <div class="score-container">
      <div class="score-box">
        <div class="label">分数</div>
        <div class="value" id="score">0</div>
      </div>
      <div class="score-box">
        <div class="label">最高分</div>
        <div class="value" id="best-score">0</div>
      </div>
    </div>
    <div class="grid-container">
      <div class="grid-row">
        <div class="grid-cell" id="cell-0-0"><span></span></div>
        <div class="grid-cell" id="cell-0-1"><span></span></div>
        <div class="grid-cell" id="cell-0-2"><span></span></div>
        <div class="grid-cell" id="cell-0-3"><span></span></div>
      </div>
      <div class="grid-row">
        <div class="grid-cell" id="cell-1-0"><span></span></div>
        <div class="grid-cell" id="cell-1-1"><span></span></div>
        <div class="grid-cell" id="cell-1-2"><span></span></div>
        <div class="grid-cell" id="cell-1-3"><span></span></div>
      </div>
      <div class="grid-row">
        <div class="grid-cell" id="cell-2-0"><span></span></div>
        <div class="grid-cell" id="cell-2-1"><span></span></div>
        <div class="grid-cell" id="cell-2-2"><span></span></div>
        <div class="grid-cell" id="cell-2-3"><span></span></div>
      </div>
      <div class="grid-row">
        <div class="grid-cell" id="cell-3-0"><span></span></div>
        <div class="grid-cell" id="cell-3-1"><span></span></div>
        <div class="grid-cell" id="cell-3-2"><span></span></div>
        <div class="grid-cell" id="cell-3-3"><span></span></div>
      </div>
    </div>
    <div class="button-container">
      <button onclick="newGame()">新游戏</button>
      <button onclick="undo()">撤销</button>
    </div>
  </div>
  <script src="game.js"></script>
</body>

</html>